package com.ksd.modules.rbac.roles.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_roles")
@ApiModel(value = "SysRoles对象", description = "角色表")
public class SysRoles implements java.io.Serializable{

    @ApiModelProperty("角色ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("角色名")
    private String roleName;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("角色代号")
    private String roleCode;

    @ApiModelProperty("是否启用 1 启用 0禁用")
    private Integer status;
}
